<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
<title>
</title>
<meta charset="utf-8">
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="css/ui-base.css">
<link rel="stylesheet" href="css/ui-box.css">
<link rel="stylesheet" href="css/ui-color.css">
<link rel="stylesheet" href="css/ui-img.css">
<script src="js/zy_tmpl.js"></script>
<script src="js/zy_control.js"></script>
<script src="js/jquery-2.0.0.js"></script>
<script src="js/zy_click.js"></script>
<script></script>
</head>
<body class="um-vp" ontouchstart>
	<!-- 基本资料-->
	<div class="ub ub-ver" style="
    min-height: 16em;
">
		<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;margin-top:0.7em;border-left:1px solid #c5c5c5;border-right:1px solid #c5c5c5;border-top:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">
			<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">
				基本资料
			</div>
			
			<div class="ub-f4">
				
			</div>
			<div class="ub-f1 btn imgEdit" onclick="baseDataEdit()" ontouchstart="zy_touch(btn-act)"></div>
		</div>
		<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;border:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">
			<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">
				姓名
			</div>

			<div class="ub-f3 ub ub-ac ulev1 tx-l">
				 小彬彬
			</div>
		</div>
		<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;border-right:1px solid #c5c5c5;border-left:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">
			<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">
				性 别
			</div>

			<div class="ub-f3  " style="background-image:url(css/image/gir2l.png);background-repeat:no-repeat;background-position:left;">
				
			</div>
		</div>
		<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;border:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">
			<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">
				生日
			</div>

			<div class="ub-f3 ub ub-ac ulev1 tx-l">
				1991-07-03
			</div>
		</div>
	</div>
	<!--邮箱-->
	<div class="ub ub-ver" style="
    min-height: 8em;
">
		<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;margin-top:0.7em;border-left:1px solid #c5c5c5;border-right:1px solid #c5c5c5;border-top:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">
			<div class="ub-f1 ub ub-ac tx-c ulev1" style="margin-left: .7em;">
				 邮     箱
			</div>
			
			<div class="ub-f4">
				
			</div>
			<div class="ub-f1 btn imgEdit" onclick="baseDataEdit()" ontouchstart="zy_touch(btn-act)"></div>
		</div>
		<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;border:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">
			<div class="ub-f1 ub ub-ac tx-c ulev1" style="margin-left: .7em;">
				地  址
			</div>

			<div class="ub-f3 ub ub-ac tx-c ulev1" style="margin-left: .7em;">
				18768122558@163.com
			</div>
		</div>
		
		
	</div>
	<!--手机 -->
	<div class="ub ub-ver" style="
    min-height: 8em;
">
		<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;margin-top:0.7em;border-left:1px solid #c5c5c5;border-right:1px solid #c5c5c5;border-top:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">
			<div class="ub-f1 ub ub-ac tx-c ulev1" style="margin-left: .7em;">
				 手    机
			</div>
			
			<div class="ub-f4">
				
			</div>
			<div class="ub-f1 btn imgEdit" onclick="baseDataEdit()" ontouchstart="zy_touch(btn-act)"></div>
		</div>
		<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;border:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">
			<div class="ub-f1 ub ub-ac tx-c ulev1" style="margin-left: .7em;">
				 号  码
			</div>

			<div class="ub-f3 ub ub-ac tx-c ulev1">
			18768122558
			</div>
		</div>
		
		
	</div>
	<!--退出-->
	<div class="ub ub-ver" style="min-height:4em;">
		<div class="ub ub-f1 ub-ac  umh4 umw4 shadow" style="background-color:#da2323;margin-left:0.7em;margin-right:0.7em;margin-top:0.7em;3px 3px 6px rgba(180, 178, 178, 0.76) ">
			<div class="ub-f1 uc-a tx-c ulev1 " onclick="quitLogin()" ontouchstart="zy_touch(btn-act)">
				 退出登录
			</div>
		
		</div>
		
		
		
	</div>
</body>

<script>
zy_init();
var url="http://tm.ourstu.com/api.php/user/getProfile?uid=1";
window.uexOnload=function(type){
	if(!type){
		uexWindow.setBounce("1");
		uexWindow.showBounceView("0","#FFF","0");
		uexWindow.showBounceView("1","#FFF","0");
		//loadData();
	}
	loadData();
}
function loadData(){
	$.getJSON(url, function(data){
		var d = document.createElement("DIV");
		if(data["sex"]=="m"){
			data["sex_pic"]="css/image/boy2.png";
			
		}
		else{
			data["sex_pic"]="css/image/gir2l.png";
		}
		var tmpl = zy_tmpl_s(tmpl_baseData, data, zy_tmpl_count(data));
		d.innerHTML = tmpl;
		document.body.appendChild(d);
	}, "json", function(e){
	}, "GET", "", true);
}
function quitLogin(){
	var session_id=window.localStorage.getItem("session_id");
	var httpID=1001;
	uexXmlHttpMgr.onData=function(inOpCode,inStatus,inResult){
		if(inStatus=1){
				var json=JSON.parse(inResult);
				if(json["success"])
				{
					uexWindow.toast(1,5,"登出成功。",1000);
					
					uexWindow.open("login",0,"login.html",5,"","",0,600);
				}
				else{
					uexWindow.toast(1,5,"登入失败。",1000);
				}
			}
	}
	uexXmlHttpMgr.open(httpID,'post','http://tm.ourstu.com/api.php/public/logout',3000);
	uexXmlHttpMgr.setPostData(httpID,'0',"session_id",session_id);
	uexXmlHttpMgr.send(httpID);
}
var tmpl_baseData='<div class="ub ub-ver" style="min-height:16em;">'
		+'<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;margin-top:0.7em;border-left:1px solid #c5c5c5;border-right:1px solid #c5c5c5;border-top:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">'
			+'<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">'
				 +'基本资料'
			+'</div>'			
			+'<div class="ub-f4">'				
			+'</div>'
			+'<div class="ub-f1 btn imgEdit" onclick="baseDataEdit()" ontouchstart="zy_touch(btn-act)"></div>'
		+'</div>'
		+'<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;border:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">'
			+'<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">'
				 +'姓 名'
			+'</div>'
			+'<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">'
				 +'${username}'
			+'</div>'
		+'</div>'
		+'<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;border-right:1px solid #c5c5c5;border-left:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">'
			+'<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">'
				 +'性 别'
			+'</div>'
			+'<div class="ub-f3  imgGirl" style="background-image:url(${sex_pic});">'				
			+'</div>'
		+'</div>'
		+'<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;border:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">'
			+'<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">'
				 +'生  日'
			+'</div>'
			+'<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">'
				 +'${birthday}'
			+'</div>'
		+'</div>'
	+'</div>'
	<!--邮箱-->
	+'<div class="ub ub-ver" style="min-height:8em;">'
		+'<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;margin-top:0.7em;border-left:1px solid #c5c5c5;border-right:1px solid #c5c5c5;border-top:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">'
			+'<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">'
				 +'邮     箱'
			+'</div>'			
			+'<div class="ub-f4">'				
			+'</div>'
			+'<div class="ub-f1 btn imgEdit" onclick="baseDataEdit()" ontouchstart="zy_touch(btn-act)"></div>'
		+'</div>'
		+'<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;border:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">'
			+'<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">'
				 +'地  址'
			+'</div>'
			+'<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">'
				 +'${email}'
			+'</div>'
		+'</div>'				
	+'</div>'
	<!--手机 -->
	+'<div class="ub ub-ver" style="min-height:8em;">'
		+'<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;margin-top:0.7em;border-left:1px solid #c5c5c5;border-right:1px solid #c5c5c5;border-top:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">'
			+'<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">'
				 +'手    机'
			+'</div>'			
			+'<div class="ub-f4">'	
			+'</div>'
			+'<div class="ub-f1 btn imgEdit" onclick="baseDataEdit()" ontouchstart="zy_touch(btn-act)"></div>'
		+'</div>'
		+'<div class="ub ub-f1 c-wh umh4 umw4 shadow" style="margin-left:0.7em;margin-right:0.7em;border:1px solid #c5c5c5;3px 3px 6px rgba(180, 178, 178, 0.76) ">'
			+'<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">'
				 +'号  码'
			+'</div>'
			+'<div class="ub-f1 ub ulev1 ub-ac tx-c" style="margin-left: .7em;">'
				 +'${mobile}'
			+'</div>'
		+'</div>'

	+'</div>'
	+'<div class="ub ub-ver" style="min-height:4em;">'
		+'<div class="ub ub-f1 ub-ac  umh4 umw4 shadow" style="background-color:#da2323;margin-left:0.7em;margin-right:0.7em;margin-top:0.7em;3px 3px 6px rgba(180, 178, 178, 0.76) ">'
			+'<div class="ub-f1 uc-a tx-c ulev1 " onclick="quitLogin()" ontouchstart="zy_touch(btn-act)">'
				 +'退出登录'
			+'</div>'
		
		+'</div>'
		
		
		
	+'</div>';

</script>
</html>
